import * as survey from "../../api/survey";

Page({
    data: {
        json:{},
        milkBrandName:[]
    },
    onLoad(option){
        survey.surveyDetail({
            id:option.id
        })
        .then((res)=>{
            this.setData({
                json:res,
                milkBrandName:res.milkBrandName.split(",")
            })
        })
    },
    handle_call_phone(){
        wx.makePhoneCall({
            phoneNumber: this.data.json.linkPhone
        });
    }
})
